﻿using NovoDataBase;
using System;
using System.Collections.Generic;
using System.Security.Permissions;
using System.Xml.Serialization;

[Serializable]
public class KeyValueItem
{
    [XmlElement]
    public string Key { get; set; }

    [XmlElement]
    public List<int> Value { get; set; }
}
[Serializable]
public class ConfigState
{
    private List<KeyValueItem> regAddrPanel = new List<KeyValueItem>();

    private List<NovoDataSet> dataSetList;
    //private NovoDataSet novoDataSet;

    public int ComboxAddAIndex { get; set; }
    public int ComboxAddBIndex { get; set; }
    public int ComboxAddCIndex { get; set; }
    public int ComboxAddDIndex { get; set; }
    public int ComboxAddDesIndex { get; set; }

    public int ComboxDevAIndex { get; set; }
    public int ComboxDevBIndex { get; set; }
    public int ComboxDevCIndex { get; set; }
    public int ComboxDevDIndex { get; set; }
    public int ComboxDevDesIndex { get; set; }
    public bool SwitchA {  get; set; }
    public bool SwitchB { get; set; }
    public bool SwitchC {  get; set; }
    public bool SwitchD { get; set; }
    public bool SwitchDes {  get; set; }

    public List<NovoDataSet> ConfigDataSetList
    {
        get { return dataSetList; }
        set { dataSetList = value; }
    }

    // 添加 XmlElement 属性来指定需要序列化的属性
    [XmlElement]
    public List<KeyValueItem> RegAddrPanel
    {
        get { return regAddrPanel; }
        set { regAddrPanel = value; }
    }

    //public NovoDataSet NovoDataSet
    //{
    //    get { return novoDataSet; }
    //    set { novoDataSet = value; }
    //}


}